Materials available:

https://github.com/xjantoth/helmfile-course/blob/master/Content.md


Note: I assume that if you are going through this course during several days - You always destroy all resources in AWS  It means that you stop you Kubernetes cluster every time you are not working on it. The easiest way is to do it via terraform cd /.../.../.../terraform_code ; terraform destroy # hit yes


destroy/delete manually if terraform can't do that:

           - VOLUMES
           - LoadBalancer/s (if exists)
           - RecordSet/s (custom RecordSet/s)
           - EC2 instances
           - network resources
           -  ...

 except:
           - S3 bucket        (delete once you do not want to use this free 1 YEAR account anymore, or you are done with this course.)
           - Hosted Zone   (delete once you do not want to use this free 1 YEAR account anymore, or you are done with this course.)
           


Please do not forget redeploy tiller pod by using of this commands every time you are starting your Kubernetes cluster.

# Start your Kubernetes cluster
cd /.../.../.../terraform_code  
terraform apply 

# Crete service account && initiate tiller pod in your Kubernetes cluster
kubectl create serviceaccount --namespace kube-system tiller
kubectl create clusterrolebinding tiller-cluster-rule --clusterrole=cluster-admin --serviceaccount=kube-system:tiller
# kubectl patch deploy --namespace kube-system tiller-deploy -p '{"spec":{"template":{"spec":{"serviceAccount":"tiller"}}}}'
helm init --service-account tiller --upgrade